﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ImageProcessing.DataEntryDialogs
{
    public partial class ContrastDialog : Form
    {
        Dimentions dimentions;
        public ContrastDialog(ref Dimentions dim)
        {
            InitializeComponent();
            dimentions = dim;
        }

        private void contrastBtn_Click(object sender, EventArgs e)
        {
            dimentions.Minimum = int.Parse(this.minTxt.Text);
            dimentions.Maximum = int.Parse(this.maxTxt.Text);
            this.Close();
        }
    }
}
